package com.ghy.service;

import com.ghy.dto.CommentInsertDTO;
import com.ghy.dto.CommentPageDTO;
import com.ghy.dto.CommentUpdateDTO;
import com.ghy.vo.CommentSimpleListVO;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.ghy.entity.Comment;

import java.util.List;

/**
 * 评论表 服务层。
 *
 * @author ghy
 * @since 2024-12-22
 */
public interface CommentService extends IService<Comment> {

    boolean insert(CommentInsertDTO dto);
    Comment select(Long id);
    List<CommentSimpleListVO> simpleList();
    Page<Comment> page(CommentPageDTO dto);
    boolean update(CommentUpdateDTO dto);
    boolean delete(Long id);
    boolean deleteBatch(List<Long> ids);
    boolean deleteByUserId(Long userId);
    boolean deleteByUserIds(List<Long> userIds);

}
